load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//src/main/starlark/release:packager.bzl", "release_archive")

release_archive(
    name = "pkg",
    srcs = glob(
        ["**/*.bzl"],
    ),
    src_map = {
        "BUILD.release.bazel": "BUILD.bazel",
    },
    deps = [
        "//src/main/starlark/core/options:pkg",
        "//src/main/starlark/core/plugin:pkg",
        "//src/main/starlark/core/repositories:pkg",
    ],
)

bzl_library(
    name = "core",
    srcs = glob(["*.bzl"]),
    visibility = ["//:__subpackages__"],
    deps = [
        "//src/main/starlark/core/plugin",
        "//src/main/starlark/core/repositories",
    ],
)
